package exceptions;

/**
 * Klasa wyjątku
 * @author mmskrzyp
 * @todo skompletować klasę wyjątku
 */
public class Exception {
    private String name;
    private String file;
    private String date;
    private String info;

    Exception() {
        name="Unknown Exception";
        //file=
        //date=
        info="No information about this exception :(";
    }

    Exception(String name, String file, String date, String info) {
        this.name=name;
        this.file=name; //to pewnie tez
        this.date=date; //to pewnie mozna pobierac w momencie tworzenia, ale nie wiem skad
        this.info=info;
    }

    @Override
    public String toString() {
        return date + " occured an event: " + name + ", at file:" + file + "\nIt means that: " + info;
    }

}
